<template>
	<view>
		<u-icon name='zhuanfa'></u-icon>
		<button @click="post">二手平台</button>
		<button @click="change">发布</button>
		<button @click="mypage">我的发布</button>
	
	</view>
</template>

<script>
	export default{
		onLoad(){
			let islogin=this.$api.getislogin();
			
			if(islogin==false){
				uni.showToast({
					icon:'none',
					title:'未登录！将跳转到登陆页面'
				})
				setTimeout(()=>{
					uni.navigateTo({
						url:'../login/login'
					})
				},1000)
			}
		},
		data(){
			return {
				
			}
		},
		methods:{
			mypage(){
				uni.navigateTo({
					url:'./secondhand/mypage/mypage'
				})
			},
			post(){
				uni.navigateTo({
					url:'./secondhand/index/index'
				})
			},
			change(){
				uni.navigateTo({
					url:'secondhand/post'
				})
			}
		}
	}
</script>

<style>
</style>
